package com.only4play.domain.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.only4play.mybatis.support.entity.AuditableEntity;
import jakarta.persistence.Entity;
import jakarta.persistence.GeneratedValue;
import jakarta.persistence.GenerationType;
import jakarta.persistence.Id;
import lombok.Getter;
import lombok.Setter;


/**
 * 用户个人实体
 *
 * @author liyuncong
 * @date 2023/11/17 16:34
 **/
@Entity
@Getter
@Setter
@TableName("user_person")
public class UserPersonEntity extends AuditableEntity {

    @TableId("id")
    private String id;
    @TableField("username")
    private String username;
    @TableField("gender")
    private Integer gender;
    @TableField("email")
    private String email;
    @TableField("phone")
    private String phone;
}
